/**
 * FileName: User
 * Author:   sky
 * Date:     2019/12/25 10:59
 * Description: user entity
 */
package com.run.guifeng.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * User entity
 * 用户基本信息，对应数据库
 * 使用mybatis
 * 使用lombok
 *
 * @author sky
 * @create 2019/12/25
 * @since 1.0.0
 */

@Data
@TableName("guifeng_mall_user")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class User extends BaseEntity {

    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    @TableField(value="avatar",exist=true)
    private String avatar;

    @TableField(value="nick_name",exist=true)
    private String nickName;

    @TableField(value="login_name",exist=true)
    private String loginName;

    @TableField(value="sex",exist=true)
    private String sex;

    @TableField(value="password_md5",exist=true)
    private String password;

    @TableField(value="introduce_sign",exist=true)
    public String introduceSign;

    @TableField(value = "is_deleted", exist = true)
    private Boolean deleted;

    @TableField(value = "is_locked", exist = true)
    private Boolean locked;

}
